package com.cloud.picture.constant;

import java.util.List;

/**
 * @author syf
 */
public interface FileConstants {

    /**
     * 文件上传最大限制.
     */
    long FILE_UPLOAD_SIZE_LIMIT = 1024 * 1024 * 2;

    /**
     * 文件上传类型限制.
     */
    List<String> FILE_TYPES_LIMIT = List.of("jpeg", "jpg", "png", "webp");

    /**
     * 允许的文件类型.
     */
    List<String> ALLOW_CONTENT_TYPE = List.of("image/jpeg", "image/jpg", "image/png", "image/webp");

    String FETCH_URL = "https://cn.bing.com/images/async?q=%s&mmasync=1";
}
